if(BUILD_TESTING)
  if (Pytest_AVAILABLE)
    include("../Pytest.cmake")
    if(NOT DISCOVER_TESTS_AFTER_BUILD OR APPEND_TESTS_ONLY)
      pytest_discover_tests(PythonBindings)
    else()
      message(STATUS "Deferring pytest discovery (DISCOVER_TESTS_AFTER_BUILD=ON)")
    endif()
  endif()
endif()

